package structure_结构性.faced_pattern_外观模式_门面模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/07/13:50
 * @Description:
 */
public class ShapeMaker {

	private Shape circle;

	private Shape rectangle;

	private Shape square;

	public ShapeMaker(Shape circle, Shape rectangle, Shape square) {
		this.circle = circle;
		this.rectangle = rectangle;
		this.square = square;
	}

	public void drawCircle() {
		circle.draw();
	}

	public void drawRectangle() {
		rectangle.draw();
	}

	public void drawsquare() {
		square.draw();
	}
}
